/*----------------------------------------------------------------------------






----------------------------------------------------------------------------*/

#include	"except.hpp"



/**
	Constructor.

	@param		a_strMessage			error message.
	@param		a_iLine					line number causing error.
*/
ParserException::ParserException(const std::string& a_strMessage, int a_iLineNumber )	: Exception(a_strMessage )
{
	m_iLineNumber				= a_iLineNumber;
}
		

/**
	Gives the name of this exception's type.
	
	@return		type name.
*/
std::string	ParserException::getType(void ) const
{
	return	"ParserException";
}


/**
	Gives the number of the line causing the error.
	
	@return		line number.
*/
int	ParserException::getLineNumber(void ) const
{
	return	m_iLineNumber;
}



//--------------------------------------------------------------------------//



/**
	Constructor.

	@param		a_strMessage			error message.
	@param		a_iLine					line number causing error.
*/
TagException::TagException(const std::string& a_strMessage, int a_iLineNumber )	: ParserException(a_strMessage, a_iLineNumber )
{}
		

/**
	Gives the name of this exception's type.
	
	@return		type name.
*/
std::string	TagException::getType(void ) const
{
	return	"TagException";
}



//--------------------------------------------------------------------------//



/**
	Constructor.

	@param		a_strMessage			error message.
	@param		a_iLine					line number causing error.
*/
PropertyException::PropertyException(const std::string& a_strMessage, int a_iLineNumber )	: ParserException(a_strMessage, a_iLineNumber )
{}
		

/**
	Gives the name of this exception's type.
	
	@return		type name.
*/
std::string	PropertyException::getType(void ) const
{
	return	"PropertyException";
}



//--------------------------------------------------------------------------//



/**
	Constructor.

	@param		a_strMessage			error message.
*/
ProjectException::ProjectException(const std::string& a_strMessage )	: ParserException(a_strMessage )
{}
		

/**
	Gives the name of this exception's type.
	
	@return		type name.
*/
std::string	ProjectException::getType(void ) const
{
	return	"ProjectException";
}
